package state.impl;

import state.Context;
import state.State;

/**
 * 停止状态
 */
public class StopState implements State {
    @Override
    public void handle(Context context) {
        System.out.println("当前处于停止状态");
        // 回到开始状态
        context.setState(new StartState());
    }
}